package com.shareach.search.domain;

import java.util.ArrayList;
import java.util.List;

import org.codehaus.jackson.annotate.JsonIgnoreProperties;
import org.codehaus.jackson.map.annotate.JsonSerialize;

import com.shareach.util.JsonUtil;

@JsonSerialize(include=(JsonSerialize.Inclusion.NON_NULL))
@JsonIgnoreProperties(ignoreUnknown=true)
public class DianpingTickets {
	private Integer nextPage;
	private List<DianpingTicketItem> items;
	public Integer getNextPage() {
		return nextPage;
	}
	public void setNextPage(Integer nextPage) {
		this.nextPage = nextPage;
	}
	public List<DianpingTicketItem> getItems() {
		return items;
	}
	public void setItems(List<DianpingTicketItem> items) {
		this.items = items;
	}
	public void addItems(List<DianpingTicketItem> items){
		if(items==null)return;
		if(this.items==null){
			this.items = new ArrayList<DianpingTicketItem>();
		}
		this.items.addAll(items);
	}
	public String toString(){
		return JsonUtil.jsonFromObject(this);
	}
}
